package com.neighbor.neighborhooduser.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neighbor.neighborhooduser.pojo.UserItems;
import com.neighbor.neighborhooduser.dao.IUserItemsDao;
import com.neighbor.neighborhooduser.service.IUserItemsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户物品表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Service
public class UserItemsServiceImpl extends ServiceImpl<IUserItemsDao, UserItems> implements IUserItemsService {
    @Autowired
    private IUserItemsDao userItemsDao;
    @Override
    public IPage<UserItems> getPage(IPage<UserItems> page, Wrapper<UserItems> wrapper) {
        return userItemsDao.getPage(page, wrapper);
    }

    @Override
    public UserItems getById(Integer id) {
        return userItemsDao.getById(id);
    }

    @Override
    public Integer addViewCount(Integer id) {
        return userItemsDao.addViewCount(id);
    }

    @Override
    public Integer updateStatus(Integer id) {
        return userItemsDao.updateStatus(id);
    }
}
